<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>厦门市湖里区文明单位创建动态管理系统</title>
    <link href="__PUBLIC__/Common/css/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/Common/css/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/Common/js/daterangepicker/daterangepicker.css" rel="stylesheet">
    <link href="__PUBLIC__/Common/js/alertify/css/alertify.css" rel="stylesheet">
    <link href="__PUBLIC__/Common/js/alertify/css/themes/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/Common/js/uploadify/uploadify.css" rel="stylesheet">
    <link href="__PUBLIC__/Common/css/admin.css" rel="stylesheet">

    <script src="__PUBLIC__/Common/js/jquery-1.11.1.min.js"></script>
    <script src="__PUBLIC__/Common/js/bootstrap.js"></script>
    <!--[if lt IE 9]>
    <script src="__PUBLIC__/Common/js/html5shiv.js"></script>
    <script src="__PUBLIC__/Common/js/respond.min.js"></script>
    <![endif]-->
    <script src="__PUBLIC__/Common/js/jquery.validate.js"></script>
    <script src="__PUBLIC__/Common/js/jquery.validate.ext.js"></script>
    <script src="__PUBLIC__/Common/js/validate.messages_cn.js"></script>
</head>
<body>
<div class="page">
    <include file="Common@Public/topnav"/>
    <div class="page-container">
        <include file="Common@Public/body"/>
    </div>
    <include file="Common@Public/modaliframe"/>
    <include file="Common@Public/rightiframe"/>
</div>

<script src="__PUBLIC__/Common/js/alertify/alertify.js"></script>
<script src="__PUBLIC__/Common/js/echarts.js"></script>
<script src="__PUBLIC__/Common/js/daterangepicker/moment.js"></script>
<script src="__PUBLIC__/Common/js/daterangepicker/daterangepicker.js"></script>
<script src="__PUBLIC__/Common/js/daterangepicker/daterangepicker_cn.js"></script>
<script src="__PUBLIC__/Common/js/easyticker/jquery.easing.min.js"></script>
<script src="__PUBLIC__/Common/js/easyticker/jquery.easy-ticker.js"></script>
<script src="__PUBLIC__/Common/js/uploadify/jquery.uploadify.min.js"></script>
<script src="__PUBLIC__/Common/js/bootstrap-treeview.js"></script>
<script src="__PUBLIC__/Common/js/zc2017.js"></script>
<script src="__PUBLIC__/Common/js/staff.tree.js"></script>
<script>
    var sideStatu = 0;
    $(document).ready(function () {
        //顶部下拉菜单
        $('.topnav').delegate('.dropdown', 'mouseenter', function () {
            if (!$(this).hasClass('open')) {
                $(this).find('[data-toggle=dropdown]').click();
            }
        }).delegate('.dropdown', 'mouseleave', function () {
            if ($(this).hasClass('open')) {
                $(this).find('[data-toggle=dropdown]').click();
            }
        });

        $('.mouseenter-dropdown').delegate('.dropdown', 'mouseenter', function () {
            if (!$(this).hasClass('open')) {
                $(this).find('[data-toggle=dropdown]').click();
            }
        }).delegate('.dropdown', 'mouseleave', function () {
            if ($(this).hasClass('open')) {
                $(this).find('[data-toggle=dropdown]').click();
            }
        });

        //右侧浮窗显示隐藏
        $('body').delegate('[data-toggle=right-iframe]', 'click', function () {
            var $this = $(this);
            var objIframe = $('#iframe-view');
            var objUrl = $this.data('href');
            if (objIframe.attr('src') != objUrl) {
                objIframe.contents().find("#page-loading").show();
                objIframe.attr('src', objUrl);
            }
            $this.closest('tr').addClass('td-selected').siblings().removeClass('td-selected');
            $('#right-iframe').addClass('right-iframe-open').fadeIn(100);
            $(".topnav").removeClass('topnav-inverse');
            if ($('.pside-toggle').hasClass('pside-hide')) {
                $('.pside-toggle').click();
                sideStatu = 0;
            }
        });
        $('#close-window').click(function () {
            $('#right-iframe').removeClass('right-iframe-open').fadeOut(100);
            $(".topnav").addClass('topnav-inverse');
//            $('#iframe-view').attr('src', 'about:blank');
            if (sideStatu == 0) {
                $('.pside-toggle').click();
            }
        });

        //左侧菜单显示隐藏
        $('.pside-toggle').click(function () {
            var $this = $(this);
            if ($this.hasClass('pside-hide')) {
                $('.page-container').animate({'left': '-150px'}, 150, function () {
                    $this.removeClass('pside-hide').find('.fa').addClass('fa-angle-double-right').removeClass('fa-angle-double-left');
                });
                sideStatu = 1;
            } else {
                $('.page-container').animate({'left': '0px'}, 150);
                $this.addClass('pside-hide').find('.fa').removeClass('fa-angle-double-right').addClass('fa-angle-double-left');
                if ($('#right-iframe').hasClass('right-iframe-open')) {
                    sideStatu = 1;
                } else {
                    sideStatu = 0;
                }
            }
        })

    });
</script>
</body>
</html>